﻿@model StoreModel
@{
    //page title
    ViewBag.Title = @T("Admin.Catalog.Stores.EditStoreDetails").Text;
}
@using (Html.BeginForm("Edit", "Store"))
{

    <div class="section-header">
        <div class="title">
            <img src="@Url.Content("~/subsites/Administration/Content/images/ico-catalog.png")" />
            @T("Admin.Catalog.Stores.EditStoreDetails") - @Model.Name @Html.ActionLink("(" + T("Admin.Catalog.Stores.BackToList") + ")", "List")
        </div>
        @if (Model.Id != 1)
        {
            <div class="options">
                <button type="submit" name="save" value="save" class="t-button">@T("Admin.Common.Save")</button>
                <button type="submit" name="save-continue" value="save-continue" class="t-button">@T("Admin.Common.SaveContinue")</button>
                @if (Model.IsAdmin)
                {
                    <span id="store-delete" class="t-button">@T("Admin.Common.Delete")</span>
                }
            </div>
        }
    </div>
    if (Model.Id != 1)
    {
        @Html.Partial("_CreateOrUpdate", Model)
    }
    else
    {
        <div>
            <strong>@Model.Name</strong>
            <br />
            <br />
            @Model.Description

        </div>
    }
}
@Html.DeleteConfirmation("store-delete")